﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfProductoBnd_.aspx.cs"  MasterPageFile="../MasterPage.Master" Inherits="CO.wfProductoBnd_" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Styles/token-input-facebook.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />

    <script src="../Scripts/jquery.min.js" type="text/javascript"></script>
   
    <script src="../Scripts/jquery.tokeninput.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.purr.js" type="text/javascript"></script>
    <script src="../Scripts/General.js" type="text/javascript"></script>
    
    <script  src="script/jquery-latest.js" type="text/javascript"></script>
    <script  src="script/jquery.tablesorter.js" type="text/javascript" ></script>

    <script  src="script/jquery-1.3.2.min.js" type="text/javascript"></script>
    <link href="DataTable/media/css/demo_page.css" rel="stylesheet" />
    <link href="DataTable/media/css/demo_table_jui.css" rel="stylesheet" />

    <link href="DataTable/examples/examples_support/themes/cupertino/jquery-ui-1.10.3.custom.css" rel="stylesheet" />
    <link href="../Styles/General.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/token-input-facebook.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />

    <script src="../Scripts/jquery.min.js" type="text/javascript"></script>

    <script src="../Scripts/jquery.tokeninput.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.purr.js" type="text/javascript"></script>
    <script src="../Scripts/General.js" type="text/javascript"></script>

    <script src="../Scripts/jquery.MetaData.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.dataTables.min.js" type="text/javascript"></script>

    <script type="text/javascript">

        window.onload = function () {
            this.ResizeGrid();
            this.MessageOnPostback();
        }

        function ResizeGrid() {
            internalGridResize("<%= gvList.ClientID %>");
                        }

                        function panelOnUpdating() {
                            updatePanelAnimationUpdating();
                        }

                        function panelOnUpdated() {
                            ResizeGrid();
                            updatePanelAnimationUpdated();
                        }

    </script>

    <script  type="text/javascript">
        function DevolverDatos(codigo, Descrip) {
            opener.fDevolverSeleccion3(codigo, Descrip);
        }
    </script>

    <style type="text/css">
        .auto-style1 {
            width: 36px;
        }
        .auto-style2 {
            height: 15px;
        }
    </style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <input id="dummy" type="button" style="display: none" runat="server" />
    <asp:UpdatePanel ID="udpInnerUpdatePanel" runat="Server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="ToolBar" style="height:24px;width:100%">
                <%--<asp:Menu ID="mnuToolbar" CssClass="ToolBarControl" runat="server"></asp:Menu>--%>
                <asp:ImageButton ID="btnNuevo" style="width: 16px; height: 16px" CssClass="ToolBarControl" runat="server" ToolTip="Grabar" OnClick="btnNuevo_Click" />
                <asp:Label ID="Label19" runat="server" ForeColor="Black" Text="Nuevo"></asp:Label>
            </div>
            <table width="100%" cellpadding="0" cellspacing="2">
                <tr>
                    <td style="width: 5px;">
                        &nbsp;
                    </td>
                    <td>
                        <table width="100%" cellpadding="0" cellspacing="2">
                        <tr>
                            <td>
                                <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -ms-border-radius: 5px;">                                       
                                    <table width="100%" cellpadding="0" cellspacing="2">
                                        <tr>
                                            <td  colspan="9" class="auto-style2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                Codigo</td>
                                            <td>
                                                <asp:TextBox ID="txtcodigo" runat="server" CssClass="esdTextBox" Width="100px" TabIndex="1"></asp:TextBox>
                                            </td>
                                            <td class="auto-style1">
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                <asp:Button ID="btnBuscar" runat="server" onclick="btnBuscar_Click" Text="Buscar" CssClass="esdButtonStyle" Width="80px" TabIndex="3" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                Descripción
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtDescripcion" runat="server" CssClass="esdTextBox" Width="200px" TabIndex="2"></asp:TextBox>
                                            </td>
                                            <td class="auto-style1">
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td class="auto-style1">
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="9">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>

                        <tr align="center">
                            <td>
                                <table cellpadding="0" cellspacing="2" width="100%">
                                    <tr>
                                        <td>
                                            <div style="width: 100%; clear:both; overflow:auto; height:1%; display:inline-block">
                                                <div class="DataDetail" aria-multiline="True" >
                                                    <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" CssClass="grid sortable {disableSortCols: [4]}"  Width="100%" Height="100%" OnRowCommand="gvList_RowCommand">
                                                    <AlternatingRowStyle CssClass="esdGridAlternativeRowStyle" />
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="Codigo">
                                                            
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="lblCodProd" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Codigo") %>'
                                                                CommandArgument='<%# Bind("Codigo") %>' CommandName="Detalle" CssClass="textoTabulado" CausesValidation="false" ToolTip="Consulta OC"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Producto">
                                                            
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("Producto") %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Alias">
                                                            
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("Alias") %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Und Medida">
                                                            
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label4" runat="server" Text='<%# Bind("[Und Medida]") %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                    

                                                </Columns>
                                                    <HeaderStyle CssClass="esdGridHeaderStyle" />
                                                    <PagerStyle CssClass="gridPagerStyle" />
                                                    <RowStyle CssClass="esdGridRowStyle" />
                                                    <SelectedRowStyle CssClass="esdGridSelectedRowStyle" />
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                
                        <%--</div>--%>
 
                    </table>
                    </td>
                </tr>
            </table>                        
            <div>
                <asp:Label ID="Message" runat="server"></asp:Label>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
